package com.erebus.view.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erebus.view.model.po.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ClassesMapper extends BaseMapper<Classes> {

    @Select("select * from classes where class_id = #{classId}")
    Classes byIdName(String classId);

    @Select("select * from classes where name = #{className}")
    Classes byNameId(String className);
}
